import { Button } from "antd";
import { Input } from "antd";

type QuestionPageProps = {
  params: Promise<{ id: string }>;
};

export default async function QuestionPage({ params }: QuestionPageProps) {
  const { id } = await params;

  // 这里可以直接 fetch，逻辑会在服务端运行
  // const data = await fetch(...).then((res) => res.json());

  return (
    <div className="flex h-screen w-full justify-center">
      <div className="w-full max-w-[600px]">
        <Button type="primary">Button</Button>
        <Input placeholder="Basic usage" defaultValue={id} />
        问卷 {id} 开始
      </div>
    </div>
  );
}
